package ccmis.finance.capital.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import jfox.platform.infrastructure.LocalNamingAndRefInspectableEntityObject;

/**
 * @author <a href="mailto:ren.yingb@gmail.com">Ren Yingbo</a>
 */
@Entity
@Table(name="T_FINANCIAL_LEND_CONTRACT")
public class LendContract extends LocalNamingAndRefInspectableEntityObject{

	@Column(name="LEND_DEPT_ID")
	private long lendDeptID;
	
	@Column(name="LEND_TYPE_ID")
	private int lendTypeID;
	
	@Column(name="CNO")
	private String cNo;
	
	@Column(name="PLAN_LEND_DATE")
	private long planLendDate;
	
	@Column(name="PLAN_RETURN_DATE")
	private long planReturnDate;
	
	@Column(name="YEAR_LIMIT")
	private int yearLimit;
	
	@Column(name="CVALUE")
	private BigDecimal cValue;
	
	@Column(name="MONTH_LIMIT")
	private int monthLimit;

	public long getLendDeptID() {
		return lendDeptID;
	}

	public void setLendDeptID(long lendDeptID) {
		this.lendDeptID = lendDeptID;
	}

	public int getLendTypeID() {
		return lendTypeID;
	}

	public void setLendTypeID(int lendTypeID) {
		this.lendTypeID = lendTypeID;
	}

	public String getCNo() {
		return cNo;
	}

	public void setCNo(String no) {
		cNo = no;
	}

	public long getPlanLendDate() {
		return planLendDate;
	}

	public void setPlanLendDate(long planLendDate) {
		this.planLendDate = planLendDate;
	}

	public long getPlanReturnDate() {
		return planReturnDate;
	}

	public void setPlanReturnDate(long planReturnDate) {
		this.planReturnDate = planReturnDate;
	}

	public int getYearLimit() {
		return yearLimit;
	}

	public void setYearLimit(int yearLimit) {
		this.yearLimit = yearLimit;
	}

	public BigDecimal getCValue() {
		return cValue;
	}

	public void setCValue(BigDecimal value) {
		cValue = value;
	}

	public int getMonthLimit() {
		return monthLimit;
	}

	public void setMonthLimit(int monthLimit) {
		this.monthLimit = monthLimit;
	}
	
}
